package com.estore.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.estore.info.ProductInfo;

public class ProductInfoMapper implements RowMapper<ProductInfo> {

	@Override
	public ProductInfo mapRow(ResultSet rs, int arg1) throws SQLException {
		ProductInfo info = new ProductInfo();
		info.setProductName(rs.getString("productName"));
		info.setCatName(rs.getString("catName"));
		info.setBrandName(rs.getString("brandName"));
		info.setLinkImg(rs.getString("linkImg"));
		return info;
	}

}
